/*
 * FileCloseAction.java
 */

package xq.ide.actions.file;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import xq.ide.Application;

/**
 *
 * @author ThorntonRP
 */
public class FileCloseAction extends AbstractAction {

	private static final long serialVersionUID = -7645227715793773778L;

	public FileCloseAction() {
		putValue(ACCELERATOR_KEY, null);
		putValue(ACTION_COMMAND_KEY, null);
		putValue(DISPLAYED_MNEMONIC_INDEX_KEY, null);
		putValue(LARGE_ICON_KEY, null);
		putValue(MNEMONIC_KEY, null);
		putValue(SELECTED_KEY, null);
		putValue(LONG_DESCRIPTION, null);
		putValue(NAME, "Close");
		putValue(SHORT_DESCRIPTION, null);
		putValue(SMALL_ICON, null);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		Application.getInstance().getMainFrame().closeDocument();
	}
}
